package com.qqbot.model.menu;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;

/**
 * <p>
 * 菜单
 * </p>
 *
 * @author fyq
 * @since 2023-03-10
 */
@Data
public class Menu implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 机器人QQ号
     */
    private String bot;

    /**
     * 父级菜单id
     */
    private Long parentId;

    /**
     * 菜单名称或内容
     */
    private String content;

    /**
     * 排序字段
     */
    private Integer sort;

    @TableLogic
    private Boolean delLogic;

    @TableField(fill = FieldFill.INSERT)
    private Date createDate;

    @TableField(fill = FieldFill.INSERT_UPDATE, update = "now()")
    private Date modifyDate;
}
